import request from '@/utils/request'

export function getChapterUsabelList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/chapter/getUsableList',
    method: 'post',
    data: query
  })
}

export function getChapterDistrictList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/chapter/getDistrictList',
    method: 'post',
    data: query
  })
}


export function getChapterList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/chapter/getList',
    method: 'post',
    data: query
  })
}   

export function saveChapter(query) {
  return request({
    url: '/examine/admin/chapter/save',
    method: 'post',
    data: query
  })
}

export function removeChapter(query) {
  return request({
    url: '/examine/admin/chapter/remove',
    method: 'post',
    data: query
  })
}
export function getChapterDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/chapter/getDetail',
    method: 'post',
    data: query
  })
}